(x_get_glyph_overhangs): Fix calculation of right
authorKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:34:34 +0000 (02:34 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:34:34 +0000 (02:34 +0000)
overhang for the static composition case.

src/xdisp.c

index 8d94bfb9db239abae81899cd16001f1ff06bdc45..0f3674433b532e5b35982a87fcc9bcc02444f1ef 100644 (file)
@@ -19915,8 +19915,8 @@ x_get_glyph_overhangs (glyph, f, left, right)
 
          if (cmp->rbearing > cmp->pixel_width)
            *right = cmp->rbearing - cmp->pixel_width;
-         if (cmp->lbearing < 0);
-         *left = - cmp->lbearing;
+         if (cmp->lbearing < 0)
+           *left = - cmp->lbearing;
        }
       else
        {